package com.autotest.sync.stf;
import java.io.File;

/**
 * stf相关配置信息
 * @author hui.qian qianhui@58.com
 * @date 2015年8月17日 下午12:02:25
 */
public class Config {

	public static String USER_DIR = System.getProperty("user.dir");
	private static final String ROOT = USER_DIR + File.separator + "resources" + File.separator;
	public static String REMOTE_PATH = "/data/local/tmp";
	public static String MINICAP_BIN = "minicap";
	public static String MINITOUCH_BIN = "minitouch";
	public static String MINICAP_NOPIE = "minicap-nopie";
	public static String MINITOUCH_NOPIE = "minitouch-nopie";
	public static String MINICAP_SO = "minicap.so";
	public static String MINICAP_WM_SIZE_COMMAND = "wm size";
	public static String MINICAP_START_COMMAND = "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/%s -P %s@%s/0";
	public static String MINITOUCH_START_COMMAND = "/data/local/tmp/%s";
	public static String MINICAP_TAKESCREENSHOT_COMMAND = "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/%s -P %s@%s/0 -s >%s";
	public static String MINICAP_IS_SUPORT = "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -P %s@%s/0 -t";
	public static String ADB_CHMOD_COMMAND = "chmod 777 %s/%s";
	public static String ADB_PULL_COMMAND = "adb -s %s pull %s %s";
	public static String ADB_PUSH_COMMAND = "adb -s %s push %s %s";
	
	public static File getMinicap() {
		return new File(ROOT, "minicap");
	}

	public static File getMinicapBin() {
		return new File(ROOT, "minicap/bin");
	}

	public static File getMiniTouchBin() {
		return new File(ROOT, "minitouch");
	}

	public static File getMinicapSo() {
		return new File(ROOT, "minicap/shared");
	}

}
